<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= webpackConfig.name %></title>
    <script src="https://icon.quanyou.com.cn/iconfont.js"></script>
    <script src="/call-center/static/wasm_exec.js"></script>
    <script src="/call-center/static/md5.js"></script>
    <!-- <script src="https://unpkg.com/@byted-crm-open-platform/feiyu_call@latest/dist/index.min.js"></script> -->
    <!-- <link rel="stylesheet" href="https://unpkg.com/@byted-crm-open-platform/feiyu_call@latest/dist/index.min.css"> -->
    <script>
      const go = new Go();
      WebAssembly.instantiateStreaming(fetch("/call-center/static/webexcel.wasm"), go.importObject).then((result) => {
          go.run(result.instance);
      });
    </script>

    <script>
      console.log('系统最后构建时间：%c <%=htmlWebpackPlugin.options.lastBuildDatetime %> ', "font-size:36px;color:red;")
    </script>
    <style>
      .IEWarnBg {
        width: 737px;
        height: 540px;
        background-image: url('<%= BASE_URL %>browser_download.png');
        position: absolute;
        margin-left: -368px;
        top: 50%;
        margin-top: -270px;
        left: 50%;
      }
      .tap {
        width: 60px;
        height: 60px;
        position: absolute;
        background: transparent;
        cursor: pointer;
        top: 257px;
        display: block;
      }
  
      .tapA {
        right: 204px;
      }
  
      .tapB {
        right: 128px;
      }
  
      .tapC {
        right: 52px;
      }
    </style>
    <!-- <script src="/work-order-front/workOrder.js"></script> -->
  </head>
  <body>
    <!-- import cdn js -->
    <% for(var js of htmlWebpackPlugin.options.cdn.js) { %>
      <script src="<%=js%>"></script>
    <% } %>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <script>
      function lowIEVersion() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
        if (isIE) {
          var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
          reIE.test(userAgent);
          var flowIEVersion = parseFloat(RegExp["$1"]);
          if (flowIEVersion < 10) {
            return true
          }
        }
        return false
      }
      if (lowIEVersion()) {
        document.body.innerHTML = '<div class="IEWarnBg">' +
          '<a href="http://se.360.cn/xp.html" class="tapA tap" target="_blank"></a>' +
          '<a href="https://www.liebao.cn/" target="_blank" class="tapB tap"></a>' +
          '<a href="https://www.google.cn/intl/zh-CN/chrome/" target="_blank" class="tapC tap"></a>' +
          '</div>';
      }

    </script>
  </body>
</html>
